package com.csx.base.design.constructor.factoryMethod;

/**
 * @author cuisongxu
 * @date 2023/3/27 21:49
 */
public class RuleConfigSource {

//    public RuleConfig load(String ruleConfigFilePath) {
//
//        String fileExtension = getFileExtension(ruleConfigFilePath);
//    }

    private String getFileExtension(String filePath) {
        // 解析文件名获取扩展名. 例如rule.json,返回json
        return "json";
    }

    static class RuleConfig {

    }

    /**
     * 工厂的工厂
     */
    static class RuleConfigParserFactoryMap {

    }

    public static void main(String[] args) {
        String[] split = "recode".split(",");
        System.out.println(split);
    }
}
